So I have a DB that contains the canvas element which draws a diagram. The diagram is extremely large therefore I used the scrollbars function so I can scroll in the DB to view all parts of the canvas
Now, I want to be able to add the print and export function
print(cnvs, 1.0, 1.0)
export(cnvs, fName, "WMF")
but I am only able to print and export the portion of the canvas that is viewable on the screen and not the entire canvas. Any help in doing it so that I can print and export the ENTIRE canvas?
phan423 - Tue Mar 20 13:46:33 EDT 2012 |
Re: Print and Export Full Canvas llandale - Wed Mar 21 11:06:50 EDT 2012
If you don't find an elegant solution, perhaps try the "getSize" and "setSize" functions: get the current size of the dialog, set it really big, export, then set it back to its original size. You may need to make sure the canvas DBE is attached to the form, or use setExtraHeightShare() and setExtraWidthShare() to make sure it expands with the dialog.
-Louie
|